package com.mysterymall.Model.Entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @ClassName com.mysterymall.Model.Entity
 * @Description
 * @Author HuangWX
 * @Time 2023/11/15  10:57
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "goods_attribute")
public class GoodsAttribute extends BaseEntity implements Serializable {

    @TableField(value = "goods_id")
    private String goodsId;

    @TableField(value = "attribute_name")
    private String attributeName;

    @TableField(value = "attribute_value")
    private String attributeValue;

    @TableField(value = "goods_amount")
    private BigDecimal goodsAmount;

    @TableField(value = "goods_count")
    private Integer goodsCount;

    @TableField(value = "goods_attribute_version")
    @Version //乐观锁
    private Integer goodsAttributeVersion;

    private static final long serialVersionUID = 1L;
}